<?php

namespace App\Http\Controllers\lxSystem;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Models\AdCategory as Category;

class AdCategoryController extends Controller
{
    function index()
    {
        $categories = Category::all();
        return $categories;
    }

    function store(Request $request)
    {
        Category::create($request->all());
    }

    function edit($id)
    {
        return Category::find($id);
    }
}
